Release 10.1A: OpenEdge Deployment:
Managing 4GL Applications
Compilation
If you distribute encrypted source code, you must also prepare and distribute a program that compiles your application procedures at a user site. The core of this program is one or more
COMPILEstatements with theXCODEoption. If you encrypt your procedures using the default key, theXCODEoption is unnecessary, because the Compiler recognizes that the procedures are encrypted.The
XCODEoption of theCOMPILEstatement compiles the specified source files-and any encrypted include files-using the same keys supplied in XCODE.When started with the Encrypted Compiler (
-rx) startup parameter, OpenEdge places you (or a user) by default in the Progress Procedure Editor. TheCOMPILEstatement and theicompile.pprocedure will only compile encrypted procedures when OpenEdge is started with-rx. When shipping encrypted source code, you must supply either an encrypted.por a.rversion of your compile program, which can be run in encrypted compiler mode. The OpenEdge installation includes a sample template, calledupgrade, that invokes OpenEdge with the-rxparameter and compiles encrypted source programs.You invoke the encrypted source code compiler with the command
PROGRESS/XCOMPILER.Seeupgrade.comin the Toolkitsamplessubdirectory for more information.After the procedures are compiled, you might want users to delete the source to regain the disk space. If you do this, consider freezing the database files; otherwise, the user can modify the database and invalidate object procedures for which the user no longer has the source.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |